package com.yangjie.common.dao.criteria;

import java.util.List;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;


public class InExpression extends AbstractCriteriaExpression{

	private List<Object> values = null;
	
	public Criterion toCriterion() {
		return Restrictions.in(this.getField(), values.toArray());
	}
	
}
